<%@ include file="/taglibs.jsp"%>
<jsp:directive.page import="java.util.Random"/>
<jsp:directive.page import="java.util.Date"/>
<jsp:directive.page import="java.util.List"/>
<jsp:directive.page import="java.util.Iterator"/>
<jsp:directive.page import="com.winterwar.base.Event"/>

<%
	
	List<Event> events = (List<Event>) request.getAttribute("events");
	int pending = 0;
	int approved = 0;
	int inReview = 0;
	int rejected = 0;
	
	for (Iterator it=events.iterator(); it.hasNext(); ){
		Event event = (Event) it.next();
		if(event.getStatus().intValue() == 1) pending++;
		if(event.getStatus().intValue() == 2) inReview++;
		if(event.getStatus().intValue() == 3) approved++;
		if(event.getStatus().intValue() == 4) rejected++;
	}
%>

<title>Winter War Administration - Event Status</title>

<p> You currently have <%=pending %> events <a href="event.do?method=listByConID&amp;conID=${conID }&amp;status=1">pending review. </a></p>
<p> You currently have <%=inReview %><a href="event.do?method=listByConID&amp;conID=${conID }&amp;status=2"> events in review status</a>.</p>
<p> You currently have <%=approved %> <a href="slot.do?method=listByCon&conID=${conID }&amp;status=3&amp;fromevents=true">approved events</a>. </p>
<p> You Currently have <%=rejected %><a href="event.do?method=listByConID&amp;conID=${conID }&amp;status=4"> rejected events</a></p>
<p> <a href="event.do?method=exportToCSV&amp;conID=${conID }">Export to CSV</a></p>